﻿using System;
using System.Windows.Forms;
using System.Drawing;

namespace ImageEncryptor.Validators
{
    public static class BitmapValidator
    {
        public static bool Validate(string filePath)
        {
            try
            {
                using (var bitmap = Bitmap.FromFile(filePath))
                    return true;
            }
            catch
            {
                throw;
            }
        }
    }
}
